<%@ page errorPage="/forward/error/page_error.jsp" %>
<%@ taglib uri="/WEB-INF/eam-tag.tld" prefix="eam" %>
<%@ page import="com.sbdcpn.page.utils.RequestUtil,
				com.sbdcpn.utils.tools.CommonFun,
				com.sbdcpn.utils.system.FunUtil,
				java.util.List,
				java.util.Map" %>

<%
	String funcid = request.getParameter("curFuncid");
	if(null == funcid) funcid = "";
	String updateID = request.getParameter("updateID");
	if(null == updateID) updateID = "";
	String relfuncType = request.getParameter("relfuncType");
	if(null == relfuncType) relfuncType = "rel";
	Map nowUserInfo = (Map)session.getAttribute("currUser");
	List relFunc = FunUtil.getInstance().getRelFunc(funcid, (String)nowUserInfo.get("user_id"),relfuncType);
%>
<html>
<head>
<title></title>
</head>
<eam:PageLanguage />
<link href="<%=CONTEXTPATH%>/css/default.css" rel="stylesheet" type="text/css">

<body>
<table>
	<%
		String relfuncName = "";
		String relfuncID = "";
		Map funcData = null;
		for(int i=0,funNum=relFunc.size(); i<funNum; i++){
			funcData = (Map)relFunc.get(i);
			relfuncID = (String)funcData.get("relfun_id");
			relfuncName = "title." + (String)funcData.get("relfun_id");
	%>
		<tr><td align="top"><a href="#" onclick="f_jumpToRelfunc('<%=relfuncID%>')"><eam:message key="<%=relfuncName%>"/></a></td></tr>
	<%}%>
</table>
</body>
</html>
<SCRIPT LANGUAGE="JavaScript">
<!--
	function f_jumpToRelfunc(aRelfuncid){
		window.parent.frames("right").f_jumpToRelfunc(aRelfuncid);
		return false;
	}
//-->
</SCRIPT>
